#include "chatfunctionwidget.h"
#include "ui_chatfunctionwidget.h"

chatFunctionWidget::chatFunctionWidget(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::chatFunctionWidget)
{
    ui->setupUi(this);
    layout= qobject_cast<QVBoxLayout*>(ui->sessionSAWC->layout());

    ChatSessionWidget *csw = new ChatSessionWidget(this);
    layout->insertWidget(0,csw);
    csw = new ChatSessionWidget(this);
    layout->insertWidget(0,csw);
    csw = new ChatSessionWidget(this);
    layout->insertWidget(0,csw);
    csw = new ChatSessionWidget(this);
    layout->insertWidget(0,csw);
    csw = new ChatSessionWidget(this);
    layout->insertWidget(0,csw);
    csw = new ChatSessionWidget(this);
    layout->insertWidget(0,csw);
    csw = new ChatSessionWidget(this);
    layout->insertWidget(0,csw);
    csw = new ChatSessionWidget(this);
    layout->insertWidget(0,csw);
    csw = new ChatSessionWidget(this);
    layout->insertWidget(0,csw);
    csw = new ChatSessionWidget(this);
    layout->insertWidget(0,csw);
    csw = new ChatSessionWidget(this);
    layout->insertWidget(0,csw);
    csw = new ChatSessionWidget(this);
    layout->insertWidget(0,csw);
    csw = new ChatSessionWidget(this);
    layout->insertWidget(0,csw);
    csw = new ChatSessionWidget(this);
    layout->insertWidget(0,csw);
    csw = new ChatSessionWidget(this);
    layout->insertWidget(0,csw);
    csw = new ChatSessionWidget(this);
    layout->insertWidget(0,csw);
}

chatFunctionWidget::~chatFunctionWidget()
{
    delete ui;
}
